package com.liucxu.zimuzu.Model.Impl;

import com.liucxu.zimuzu.Api.UpdateService;
import com.liucxu.zimuzu.Model.Bean.UpdateBean;
import com.liucxu.zimuzu.Model.IUpdateModel;
import com.liucxu.zimuzu.Utils.ParamsUtils;
import com.liucxu.zimuzu.Utils.ServiceFactory;

import java.util.HashMap;

import rx.Observable;

/**
 * 今日更新的实现类Model
 * Created by liukanshan on 2016/12/8.
 */

public class UpdateModelImpl implements IUpdateModel {
    @Override
    public Observable<UpdateBean> getUpdateToday() {
        HashMap<String,String> maps=new HashMap<>();
        maps= ParamsUtils.GetCommonParams();
        return ServiceFactory.GetInstance().createService(UpdateService.class).getUpdateToday(maps);
    }
}
